package com.njwb.pojo;

import java.util.Date;

public class Bill {
    int bill_id;
    String product_name;
    int quantity;
    String unit;//单位
    Double amount;
    Boolean is_paid;
    String supplier_name;
    String product_description;
    Date bill_time;

    public Bill(int bill_id, String product_name, int quantity, String unit, Double amount, Boolean is_paid, String supplier_name, String product_description, Date bill_time) {
        this.bill_id = bill_id;
        this.product_name = product_name;
        this.quantity = quantity;
        this.unit = unit;
        this.amount = amount;
        this.is_paid = is_paid;
        this.supplier_name = supplier_name;
        this.product_description = product_description;
        this.bill_time = bill_time;
    }

    public int getBill_id() {
        return bill_id;
    }

    public void setBill_id(int bill_id) {
        this.bill_id = bill_id;
    }

    public String getProduct_name() {
        return product_name;
    }

    public void setProduct_name(String product_name) {
        this.product_name = product_name;
    }

    public int getQuantity() {
        return quantity;
    }

    public void setQuantity(int quantity) {
        this.quantity = quantity;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public Double getAmount() {
        return amount;
    }

    public void setAmount(Double amount) {
        this.amount = amount;
    }

    public Boolean getIs_paid() {
        return is_paid;
    }

    public void setIs_paid(Boolean is_paid) {
        this.is_paid = is_paid;
    }

    public String getSupplier_name() {
        return supplier_name;
    }

    public void setSupplier_name(String supplier_name) {
        this.supplier_name = supplier_name;
    }

    public String getProduct_description() {
        return product_description;
    }

    public void setProduct_description(String product_description) {
        this.product_description = product_description;
    }

    public Date getBill_time() {
        return bill_time;
    }

    public void setBill_time(Date bill_time) {
        this.bill_time = bill_time;
    }

    @Override
    public String toString() {
        return "Bill{" +
                "bill_id=" + bill_id +
                ", product_name='" + product_name + '\'' +
                ", quantity=" + quantity +
                ", unit='" + unit + '\'' +
                ", amount=" + amount +
                ", is_paid=" + is_paid +
                ", supplier_name='" + supplier_name + '\'' +
                ", product_description='" + product_description + '\'' +
                ", bill_time=" + bill_time +
                '}';
    }
}
